<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>待收益</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <link href="css/base.css" rel="stylesheet" type="text/css" />
    <link href="css/button.css" rel="stylesheet" type="text/css" />
    <link href="css/icon.css" rel="stylesheet" type="text/css" />
    <link href="css/waiting-profit.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <img src="image/person-bg.png" class="person-bg-image" />
    <div class="avatar-container">
        <img src="" class="avatar-thumb" />
        <div class="avatar-mask"></div>
    </div>
    <div class="user-info">
        <div class="user-name font-red">
            <span class="account"></span>
            <span class="font-blue">RMB</span>
            <i class="icon icon-arrow-right-red"></i>
        </div>
        <div class="statis-info">
            <div class="statis-item">
                <div id="last-month" class="item-value"></div>
                <div class="item-name">上月收益</div>
            </div>
            <div class="statis-item-divider"></div>
            <div class="statis-item">
                <div id="this-month" class="item-value"></div>
                <div class="item-name">本月收益</div>
            </div>
            <div class="statis-item-divider"></div>
            <div class="statis-item">
                <div id="total-month" class="item-value"></div>
                <div class="item-name">累计收益</div>
            </div>
        </div>
    </div>
    <div class="form-body">
        <div class="form-item">
            <span class="item-title">已收益</span>
            <a class="item-action" href="waited-profit.html">
                <span id="already-month" class="action-value font-red"></span>
                <i class="icon icon-arrow-right"></i>
            </a>
        </div>
        <div class="form-item">
            <span class="item-title">已提现</span>
            <a class="item-action" href="javascript:;">
                <span id="already-withdrawl" class="action-value"></span>
                <i class="icon icon-arrow-right"></i>
            </a>
        </div>
        <div class="form-item">
            <span class="item-title">绑定提现帐户</span>
            <a class="item-action" href="bank.html">
                <span class="action-value">已绑定</span>
                <i class="icon icon-arrow-right"></i>
            </a>
        </div>
        <div class="form-item last">
            <span class="item-title">收益明细</span>
            <a class="item-action" href="profit-detail.html">
                <span class="action-value">查看</span>
                <i class="icon icon-arrow-right"></i>
            </a>
        </div>
    </div>
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js" type="text/javascript"></script>
    <script src="js/template.js" type="text/javascript"></script>
    <script src="js/base.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            bee.wxConfig(function() {
                bee.hideAllNonBaseMenuItem();
            }, function(res) {});

            bee.request({
                url: '/Member/Index/pending_income',
                data: {
                    type: 2
                },
                success: function(result) {
                    $('.avatar-thumb').attr('src', result.info.logo);
                    $('.account').text(result.info.account);
                    $('#last-month').text(result.info.s_money);
                    $('#this-month').text(result.info.b_money);
                    $('#total-month').text(result.info.total_money);
                    $('#already-month').text(result.info.y_money);
                    $('#already-withdrawl').text(result.info.yt_money);
                }
            });

            var height = $('.person-bg-image').height();
            $('.avatar-container').css('margin-top', height - 60);
        });
    </script>
</body>

</html>
